import Cookies from "js-cookie";
import { cookieKeys } from "./auth";

export function getToken(TokenKey) {
  return Cookies.get(TokenKey);
}

export function setToken(TokenKey, token) {
  return Cookies.set(TokenKey, token, { domain: cookieKeys().domain });
}

export function removeToken(TokenKey) {
  return Cookies.remove(TokenKey, { domain: cookieKeys().domain });
}
